<div class="MainContentInner">
    <div id="content">
        <div class="ContentWrapper">
            <div class="Contact">

                <div class="title-big-box">LIÊN HỆ</div>

                <div class="ContactBlockWrapper02">
                    <div class="ContactBlockWrapper01">
                        <div class="ContactBlock">
                            <div class="ContactAddress">
                                <div style="font-size: 12px;padding: 5px 0;font-weight: bold">TRỤ SỞ CHÍNH:</div>
                                <?php echo Config::model()->GetValue('thongtin_contact') ?>
                                <?php echo CHtml::image('../images/pkphusanbsthu.png',Config::GetValue('name'),array('width'=>440,'height'=>330)) ?>
                            </div>

                            <div class="ContactInfo">
                                <?php if(Yii::app()->user->hasFlash('contact')): ?>

                                    <div class="flash-success">
                                        <?php echo Yii::app()->user->getFlash('contact'); ?>
                                    </div>

                                <?php else: ?>
                                <?php $form=$this->beginWidget('CActiveForm', array(
                                    'id'=>'contact-form',
                                    'enableClientValidation'=>true,
                                    'clientOptions'=>array(
                                        'validateOnSubmit'=>true,
                                    ),
                                )); ?>

                                    <p class="note">
                                        Mọi thắc mắc cần được <strong style="color: #ff0000"> tư vấn</strong> hoặc <strong style="color: #ff0000"> đặt lịch hẹn khám bệnh </strong> vui lòng điền đầy đủ các thông tin bên dưới.<br>
                                        Chỗ có dấu <span class="required">*</span> là bắt buộc.
                                    </p>

                                    <div class="Row">
                                        <?php echo $form->labelEx($model,'first_name'); ?>
                                        <?php echo $form->textField($model,'first_name'); ?>
                                        <?php //echo $form->error($model,'first_name'); ?>
                                    </div>
                                    <div class="Row">
                                        <?php echo $form->labelEx($model,'sex'); ?>
                                        <?php echo $form->dropDownList($model,'sex',array('Nam'=>'Nam','Nữ'=>'Nữ','Khác'=>'Khác')); ?>
                                        <?php echo $form->error($model,'sex'); ?>
                                    </div>
                                    <div class="Row">
                                        <?php echo $form->labelEx($model,'job'); ?>
                                        <?php echo $form->textField($model,'job') ?>
                                    </div>
                                    <div class="Row">
                                        <?php echo $form->labelEx($model,'address'); ?>
                                        <?php echo $form->textField($model,'address') ?>
                                    </div>
                                    <div class="Row">
                                        <?php echo $form->labelEx($model,'phone'); ?>
                                        <?php echo $form->textField($model,'phone') ?>
                                    </div>
                                    <div class="Row">
                                        <?php echo $form->labelEx($model,'email'); ?>
                                        <?php echo $form->textField($model,'email') ?>
                                    </div>
                                    <div class="Row">
                                        <?php echo $form->labelEx($model,'subject'); ?>
                                        <?php echo $form->textField($model,'subject') ?>
                                    </div>
                                    <div class="Row">
                                        <?php echo $form->labelEx($model,'body'); ?>
                                        <?php echo $form->textArea($model,'body',array('rows'=>7)) ?>
                                    </div>
                                    <?php if(CCaptcha::checkRequirements()): ?>
                                    <div class="Row">
                                        <?php echo $form->labelEx($model,'verifyCode'); ?>
                                        <div>
                                            <?php $this->widget('CCaptcha',
                                                array('showRefreshButton'=>true,
                                                    'buttonType'=>'button',
                                                    'buttonOptions'=>
                                                        array('type'=>'image',
                                                            'src'=>"../images/refresh-icon.png",
                                                            'width'=>32,
                                                            'height'=>32,
                                                            'style'=>'width:32px; height: 32px;margin-right:160px;'
                                                        ),
                                                    'buttonLabel'=>'Refrescar imagen'));?>
                                            <?php echo $form->textField($model,'verifyCode'); ?>
                                        </div>
                                        <div class="hint">Vui lòng nhập các ký tự hiển thị trong hình ở trên.</div>
                                        <?php //echo $form->error($model,'verifyCode'); ?>
                                        <div class="clear"></div>
                                    </div>
                                    <?php endif; ?>

                                    <div class="SubmitRow">
                                        <?php echo CHtml::submitButton('Gửi',array('class'=>'SubmitBtn')); ?>
                                    </div>

                                <?php $this->endWidget(); ?>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="clearboth"></div>
        </div>
    </div>
</div>